home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Developer University / DUProjects / Graphics3D / Sources / Selection.cpp < prev    next >
Encoding:
Text File  |  1996-03-29  |  2.1 KB  |  102 lines  |  [TEXT/CWIE]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0d1 $
  3.  
  4. //========================================================================
  5. #ifndef SELECTION_H
  6. #include "Selection.h"        // CGraphics3DSelection
  7. #endif
  8.  
  9. #ifndef PART_H
  10. #include "Part.h"        // CGraphics3DPart
  11. #endif
  12.  
  13. #ifndef FRAME_H
  14. #include "Frame.h"        // CGraphics3DFrame
  15. #endif
  16.  
  17. #ifndef CONTENT_H
  18. #include "Content.h"
  19. #endif
  20.  
  21. // ----- Part Layer -----
  22. #ifndef FWUTIL_H
  23. #include "FWUtil.h"
  24. #endif
  25.  
  26. #ifndef FWITERS_H
  27. #include "FWIters.h"
  28. #endif
  29.  
  30. #ifndef FWPRESEN_H
  31. #include "FWPresen.h"
  32. #endif
  33.  
  34. // ----- Foundation Layer -----
  35. #ifndef FWSUSINK_H
  36. #include "FWSUSink.h"
  37. #endif
  38.  
  39. #ifndef FWSTREAM_H
  40. #include "FWStream.h"
  41. #endif
  42.  
  43. // ----- OpenDoc Includes -----
  44. #ifndef SOM_Module_OpenDoc_StdProps_defined
  45. #include <StdProps.xh>
  46. #endif
  47.  
  48. #ifndef SOM_ODShape_xh
  49. #include <Shape.xh>
  50. #endif
  51.  
  52. //========================================================================
  53. #ifdef FW_BUILD_MAC
  54. #pragma segment graphics3d
  55. #endif
  56.  
  57. FW_DEFINE_AUTO(CGraphics3DSelection)
  58.  
  59. //========================================================================
  60. CGraphics3DSelection::CGraphics3DSelection(Environment* ev, CGraphics3DContent* content)
  61.   :    FW_CSelection(ev, false, false),
  62.     fGraphics3DContent(content)
  63. {
  64. }
  65.  
  66. //-------------------------------------------------------------------------
  67. CGraphics3DSelection::~CGraphics3DSelection()
  68. {    
  69. }
  70.  
  71. //-------------------------------------------------------------------------
  72. void 
  73. CGraphics3DSelection::CloseSelection(Environment* ev)
  74. {
  75. }
  76.  
  77. //-------------------------------------------------------------------------
  78. void 
  79. CGraphics3DSelection::ClearSelection(Environment* ev)
  80. {
  81. }
  82.  
  83. //-------------------------------------------------------------------------
  84. void 
  85. CGraphics3DSelection::SelectAll(Environment* ev)
  86. {
  87. }
  88.  
  89. //-------------------------------------------------------------------------
  90. FW_Boolean 
  91. CGraphics3DSelection::IsEmpty(Environment* ev) const
  92. {
  93.     return TRUE;            // no data to copy
  94. }
  95.  
  96. //-------------------------------------------------------------------------
  97. FW_CContent* 
  98. CGraphics3DSelection::GetSelectedContent(Environment* ev)
  99. {
  100.     return fGraphics3DContent;
  101. }
  102.